<!DOCTYPE html>
<html>
	<meta charset="utf-8">

	<head th:include="include :: header"></head>

	<body>
		<div class="ibox-content">
			<form class="form-horizontal m-t" id="signupForm">
				<input id="deptId" name="deptId" th:value="${sysDept.deptId}" class="hidden">
				<div class="form-group">
					<label class="col-sm-3 control-label ">上级部门：</label>
					<div class="col-sm-8">
						<input th:value="${parentDeptName}" class="form-control" type="text" readonly="true" />
						<input class="form-control hidden" type="text" id="parentId" name="parentId" th:value="${sysDept.parentId}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">养殖户(部门)名称：</label>
					<div class="col-sm-8">
						<input id="name" name="name" th:value="${sysDept.name}" class="form-control" type="text">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">排序：</label>
					<div class="col-sm-8">
						<input id="orderNum" name="orderNum" th:value="${sysDept.orderNum}" class="form-control" type="text">
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-8">
						<!--<input id="delFlag" name="delFlag" th:value="${sysDept.delFlag}" class="form-control" type="text">-->

						<select class="form-control" name="delFlag" id="delFlag" th:field="${sysDept.delFlag}"
								th:value="${sysDept.delFlag}">
							<option value="0">禁用</option>
							<option value="1">启用</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">appid / secret：</label>
					<div class="col-sm-8">
						<input th:value="${sysDept.appid==null?'':sysDept.appid}+ '  '+${sysDept.secret==null?'':sysDept.secret}"
							   class="form-control" type="text" readonly="true"/>
					</div>
				</div>
				<div class="form-group" style="margin-top: 40px">
					<div class="col-xs-3 col-xs-offset-5">
						<button type="submit" class="btn btn-primary">提交</button>
					</div>
				</div>
			</form>
		</div>

		<div th:include="include::footer"></div>
		<script type="text/javascript" src="js/appjs/system/sysDept/edit.js">
		</script>
	</body>

</html>